package com.zyh.server.mapper;

import com.zyh.server.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyh.server.utils.R;
import com.zyh.server.vo.LoginVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author ZYH
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2024-11-12 11:22:52
* @Entity com.zyh.server.entity.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
	/**
	 * mapper接口用户登录
	 * @param loginVO   前端传入的用户对象
	 * @return  返回数据库查询出的用户对象
	 */
	User selectUser(@Param("loginVO") LoginVO loginVO);

	int updateUserInfo(@Param("user") User user);
}




